<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript">
     function identificarObjSs(idx){
    	  document.getElementById('id_objss').value=idx;
     }
     
     function soloNumerosyDec223(k){
	  	 var tecla = 0;
	  	 if(typeof (k.charCode) == 'undefined' ){
	  		 tecla = k.keyCode;
	  	 }else{
	  		 tecla = k.charCode;
	  	 }
	  	 if(tecla==0) return true;
		 /*
	  	 if (tecla==44){
			 tecla=46;	
			 if(typeof (k.charCode) == 'undefined' ){
		  		  k.keyCode=46;
		  	 }else{
		  		  k.charCode=46;
		  	 }
		 }
		 alert(tecla);
		 */

	  	 if ( ( tecla < 48 || tecla > 57 ) && (tecla!=46) ){
	  	     return false;
	  	 }
	  	 return true;
   }  
</script>
</head>
<body> 
<table width="100%">
		<tr>
			<td width="10%" class='tabla_th1' >Estatus ( <s:property value="site.codigo" /> ) :</td>
			<td width="25%" class='tabla_celda1' align="left" ><s:property value="site.status" /> - <s:property value="site.fecha_status" /></td>
			<td width="15%"  class='tabla_th1'>Observaciones:</td>
			<td width="50%" class='tabla_celda1' align="left" ><s:property value="site.obs_status" /></td>
		</tr>
		<s:set name="ver_boton" ><s:property value="ver_enviar1" /></s:set>
		<s:if test="%{#ver_boton=='SI'}">
			<tr>
				<td align='cente' colspan='4' class='tabla_th1'> 
				    <s:set name="n_codigo"><s:property value="site.codigo" /></s:set>
				    <s:url id="enviar_plan" value="actualizar_stx_site.action" >
		   				<s:param name='site.codigo' value='%{n_codigo}' ></s:param>
					</s:url>
					<sj:a id="aprobarlnk_23" href="%{enviar_plan}" targets="resultado_ss_1" indicator="indicator_citems_ss01" button="true"  >Enviar a planeamiento </sj:a> 
				</td>
			</tr>
		 </s:if>
 </table>
<table width="100%">
        <s:set name="n_codigo"><s:property value="cod_prospecto" /></s:set>
        <s:set name="n_cod_site"><s:property value="site.codigo" /></s:set>
        <s:hidden name='cod_prospecto' value='%{n_codigo}'></s:hidden>  
        <s:url id="remoteurl1" action="cargar_listas_site"   > 
			    <s:param name='cod_prospecto' value='%{n_codigo}' ></s:param>
		</s:url>
		 <s:hidden name='id_objss' id='id_objss' value='ss_0' ></s:hidden> 
		 <s:hidden name='site.codigo' value='%{n_cod_site}'></s:hidden>  
		 
 <s:iterator var="outer2" status="i_status" value="tabla_ss" >
        <s:set name="n_ctd"><s:property value="#outer2.id" /></s:set> 
        <s:set name="n_coditem"><s:property value="#outer2.cod" /></s:set> 
        <s:hidden name='cod_item' value='%{n_coditem}'></s:hidden> 
	   	<tr Height='10px' >
			<td width='10%'  class='tabla_th1' >Sucursal </td>
			<td width='40%' class='tabla_th1' >
			      <s:set name="n_suc_cod"><s:property value="sucursal" /></s:set>
			      <s:set name="n_suc_des"><s:property value="des_sucursal" /></s:set>
			      <sj:select href='%{remoteurl1}'
					   cssClass='caja_3' name="sucursal" id='sucursalss_%{n_ctd}' 
					   headerKey='%{n_suc_cod}' headerValue='%{n_suc_des}' 
					   list='lst_sucursales' listKey='cod'  listValue='descripcion' 
				  />
		   </td>
		   <td width='10%' class='tabla_th1'  >Servicio</td>
		   <td width='40%' class='tabla_th1' >	
				   <s:url id="urlx_ssv1" action="cargar_listas_site"   > </s:url>
				   <s:set name="n_serv_cod"><s:property value="servicio" /></s:set>
				   <s:set name="n_serv_des"><s:property value="des_servicio" /></s:set>
				   <sj:select href='%{urlx_ssv1}'
						cssClass='caja_3' name='servicio' id='servicioss_%{n_ctd}' 
						headerKey='%{n_serv_cod}' headerValue='%{n_serv_des}' 
						list='lst_servicios' 
						listKey='cod' 
					    listValue='descripcion' 
					    onChangeTopics='reloadsecondlistss_%{n_ctd}' 
					    onclick='identificarObjSs(this.id)'
				   />
			</td>
		  <td width='10%' class='tabla_th1'  >Velocidad</td>
		  <td width='40%' class='tabla_th1'>
		        <s:set name="n_prod_cod"><s:property value="producto" /></s:set>
		        <s:set name="n_prod_des"><s:property value="des_producto" /></s:set>
				<sj:select href='%{urlx_ssv1}'
					cssClass='caja_3' name='producto' id='productoss_%{n_ctd}' 
					headerKey='%{n_prod_cod}' headerValue='%{n_prod_des}' 
					list='lst_productos' 
					listKey='cod' listValue='descripcion'
				    formIds='form_crearsitess' reloadTopics='reloadsecondlistss_%{n_ctd}' 
				 />
			</td>
			<td width='10%' class='tabla_th1' >
			    <s:form action="borrar_item_ss.action" id="form_eli_ss%{n_ctd}" theme="simple">
		          <s:hidden name='cod_item' id='txtcod_sitesx1_%{n_ctd}'  value='%{n_coditem}' ></s:hidden>
		          <sj:div id='resultado_eli_ssxw_%{n_ctd}' >  
		              <sj:submit cssClass="boton_sia1" targets="resultado_eli_ssxw_%{n_ctd}" indicator="indicator_aprxss_rq" button="true" value="Eliminar" theme="simple" />
		              <img id="indicator_aprxss_rq" src="images/ajax-loader3.gif" alt="Eliminando..." style="display: none" />
		          </sj:div>
		       </s:form>  		
			</td>
		</tr>
</s:iterator>
 </table>
 </body>
</html>
 